<template>
    <element-container :isShowTitle="true" :isLeft="true" :isRight="true" v-loading="tree.visible">
        <!--<el-tooltip class="item" effect="dark" content="Bottom Left 提示文字" placement="bottom-start">-->
            <el-button  icon="el-icon-check" @click="saveData" title="保存" slot="left-title" size="mini"></el-button>
        <!--</el-tooltip>-->
        <element-table :api="table.api" :tableHeader="table.header"  ref="element_table" slot="right-main" @current-change="onHandleCurrentChange" highlight-current-row>
        </element-table>
        <el-tree
                :data="$store.state.menuStore.menu"
                show-checkbox
                node-key="id"
                ref="tree"
                highlight-current
                :props="defaultProps"
                :default-checked-keys= tree.checks
                slot="left-main" style="width: 500px">
        </el-tree>

    </element-container>
</template>
<!-- 权限逻辑js-->
<script src="../assets/js/permission.js"></script>
